import { reactive, ref } from "vue";

export default function InitHook() {
  const searchForm = reactive<Partial<ClientAccountManagement.SearchForm>>({
    name: undefined,
    status: undefined,
    pageNum: 1,
    pageSize: 100,
    total: 0
  });
  const tableData = ref<Array<ClientAccountManagement.ListRows>>([]);
  const dialogOpts = reactive<Base.DialogOpts>({
    title: "",
    width: "520px",
    component: "",
    visible: false,
    type: 1,
    passData: {}
  });
  return {
    searchForm,
    tableData,
    dialogOpts
  };
}
